import request from '@/utils/request'
let baseUrl = process.env.NODE_ENV === 'production' ? '/api/risk' : '/riskyf'
// 贷后预警列表list
export const getLoanAfterList = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/std/loan-after/list',
    method: 'post',
    data
  })
// 新增指标
export const getLoanRisk = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/std/config/get-loan-after-risk-level',
    method: 'post',
    data
  })

// 保存贷后预警风险配置
export const saveLoanRisk = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/std/config/save-loan-after-risk-level',
    method: 'post',
    data
  })
// 客户风险分布
export const customRiskDistribute = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/std/loan-after/custom-risk-distribute',
    method: 'post',
    data
  })
// 客户风险趋势
export const customRiskTrend = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/std/loan-after/custom-risk-trend',
    method: 'post',
    data
  })
